<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="_commonAdmin/title.jsp" %>
<body>
    <%
        if (null == session.getAttribute("admin")) {
            response.sendRedirect("login.jsp");
        }
    %>
    <%@include  file="_commonAdmin/header.jsp" %>
    <%@include  file="_commonAdmin/sidebar.jsp" %>


    <div class="col-main col-xs-12 col-sm-6 col-md-9">
        <!-- InstanceBeginEditable name="main" -->
        <h2 class="ico_courses">Courses Manager</h2>
        <table id="table">
            <thead>
                <tr>
                    <th>CoursesID</th>
                    <th>CoursesName</th>
                    <th>Description</th>								
                    <th>DateStart</th>
                    <th>DateEnd</th>                                                                
                    <th>Actions</th>
                </tr>
            </thead>
            <tbody>
                <logic:iterate id="coursesitem" name="Courses" property="courses">
                    <tr>
                        <td>${coursesitem.coursesId}</td>
                        <td>${coursesitem.coursesName}</td>
                        <td>${coursesitem.description}</td>								
                        <td>${coursesitem.dateStart}</td>
                        <td>${coursesitem.dateEnd}</td>
                        <td><a href="../coursesDelete.do?coursesID=${coursesitem.coursesId}" title="Delete Courses" onclick="return confirm('Do you want to delete this Courses ?')"><img src="<%=request.getContextPath()%>/_assets/imagesAdmin/cancel.jpg" alt="Delete"></a><a  href="../coursesBroadsPreForEdit.do?coursesID=${coursesitem.coursesId}" title="Edit Courses"><img src="<%=request.getContextPath()%>/_assets/imagesAdmin/edit.jpg" alt="Edit"></a></td>
                    </tr>
                </logic:iterate>
            </tbody>
        </table>
        <!-- InstanceEndEditable -->
    </div>
    <%@include file="_commonAdmin/footer.jsp" %>
</body>
</html>


